
""""""""""""""""""""""""""
" AsynRun
""""""""""""""""""""""""""
" 自动打开 quickfix window ，高度为 6
let g:asyncrun_open = 6

" 任务结束时候响铃提醒
let g:asyncrun_bell = 1

let g:asyncrun_rootmarks = ['.svn', '.git', '.root', '_darcs', 'build.xml']

" 设置 F10 打开/关闭 Quickfix 窗口
nnoremap <F10> :call asyncrun#quickfix_toggle(6)<cr>

nnoremap <silent> <F4> :AsyncRun -cwd=$(VIM_FILEDIR) cmake . <cr>
nnoremap <silent> <F5> :AsyncRun -cwd=$(VIM_FILEDIR) -mode=4 "$(VIM_FILEDIR)/$(VIM_FILENOEXT)" <cr>
nnoremap <silent> <F6> :AsyncRun -cwd=$(VIM_FILEDIR) -raw make test <cr>
nnoremap <silent> <F7> :AsyncRun -cwd=$(VIM_FILEDIR) make <cr>
nnoremap <silent> <F8> :AsyncRun -cwd=$(VIM_FILEDIR) -mode=4 make run <cr>

